package com.ys.ffms.service.Impl;

import com.ys.ffms.common.Result;
import com.ys.ffms.mapper.UserLoginMapper;
import com.ys.ffms.pojo.UserLogin;
import com.ys.ffms.pojo.VO.UserLoginVO;
import com.ys.ffms.service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: UserLoginService实现类
 * @PROJECT_NAME: ffmsService
 * @DESCRIPTION:
 * @USER: lin
 * @DATE: 2022/1/31 13:58
 */
@Service
public class UserLoginServiceImpl implements UserLoginService {

    @Autowired
    private UserLoginMapper userLoginMapper;

    @Override
    public int insertDate(UserLogin userLogin) {
        int insert = userLoginMapper.insert(userLogin);
        return insert;
    }

    @Override
    public List<UserLoginVO> findTimeLine() {
        List<UserLoginVO> list = userLoginMapper.findTimeLine();
        list.get(0).setType("primary");
        list.get(0).setHollow(true);
        return list;
    }


}
